 <?php

include('../includes/dbConnection.php');

//mysql_query("INSERT INTO uyeler (KULLANICI_ADI,PAROLA,EMAIL,ISIM,sonSayfa,yer,KAYIT_TARIHI) VALUES('OnlineRusca','22426008','onlinerusca@gmail.com','Yonetim','anasayfa','Almanya',now())") or die(mysql_error());

$slideId = $_GET['slideId'];
$presId=$_GET['presId'];
if ($slideId =='') exit("@22");


//$slideNum=12; //input
$presTitle="TestPresetation"; // input

$sql=mysql_query("SELECT * FROM slides WHERE slideId='$slideId' and presId='$presId'") or die(mysql_error());
$rsnum = mysql_num_rows($sql);
if ($rsnum > 0) {
	//echo 1; // kelime kayitli
	$rs=mysql_fetch_assoc($sql);
$presId=$rs['presId'];
$caption= $rs['caption'];
 $content=$rs['content'];
 
 echo "Presentation #". $presId. " " . $caption . " " .   $content;
}
else 
	echo  0;
//$rs=mysql_fetch_assoc($sqlQuery);

//while ($rs=mysql_fetch_assoc($sqlQuery)) {
/*
                          $presId=$rs['presId'];
                          $presTitle= $rs['presTitle'];
			  $slideNum=$rs['slideNum'];
	echo $presId;
	echo $presTitle;
	echo $slideNum; 
//} //while
*/
?>
